const user = {
    index: true,
    border: true,
    menuAlign: 'center',
    loadingText: "加载中...",
    loadingSpinner: "svg",
    loadingSvgViewBox: "-10, -10, 50, 50",
    loadingBackground: "rgba(122, 122, 122, 0.6)",
    labelWidth: 120,
    menu: true,
    menuWidth: 150,
    addBtn: true,
    delBtn: false,
    editBtn: false,
    column: [
        {
            label: "代理账号",
            prop: "account",
            minWidth: 120,
        },
        {
            label: 'authorityid',
            prop: 'authority_id',
            minWidth: 120,
            hide: true,
            search: true,
            overHidden: true
        },
        {
            label: 'formatkey',
            prop: 'format_key',
            hide: true,
            minWidth: 150,
            display: false,
        },
        {
            label: 'inactive',
            prop: 'inactive',
            minWidth: 130,
            search: true
        },
        {
            label: 'level',
            prop: 'level',
            hide: true,
            minWidth: 120,
            display: false,
        },

        {
            label: 'name',
            prop: 'name',
            hide: true,
            minWidth: 120,
            display: false,
        },
        {
            label: 'password',
            prop: 'password',
            minWidth: 120,
        },
        {
            label: 'status',
            hide: true,
            prop: 'status',
            minWidth: 120,
            display: false,
            overHidden: true
        }
    ],
}

const formatDate = (date, cut) => {
    var date = new Date(date);
    var YY = date.getFullYear() + cut;
    var MM =
        (date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1) + cut;
    var DD = date.getDate() < 10 ? "0" + date.getDate() : date.getDate();
    var hh = (date.getHours() < 10 ? "0" + date.getHours() : date.getHours()) + ":";
    var mm = (date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes()) + ":";
    var ss = date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds();
    return YY + MM + DD + " " + hh + mm + ss;
};

export default user